Optimal. Leaf size=84 \[ -\frac{a^2 \coth ^5(c+d x)}{5 d}+\frac{2 a^2 \coth ^3(c+d x)}{3 d}-\frac{a (a+2 b) \coth (c+d x)}{d}+\frac{b^2 \sinh (c+d x) \cosh (c+d x)}{2 d}-\frac{b^2 x}{2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.145736, antiderivative size = 84, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.174, Rules used = {3217, 1259, 1802, 207} \[ -\frac{a^2 \coth ^5(c+d x)}{5 d}+\frac{2 a^2 \coth ^3(c+d x)}{3 d}-\frac{a (a+2 b) \coth (c+d x)}{d}+\frac{b^2 \sinh (c+d x) \cosh (c+d x)}{2 d}-\frac{b^2 x}{2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3217
Rule 1259
Rule 1802
Rule 207
Rubi steps
\begin{align*} \int \text{csch}^6(c+d x) \left (a+b \sinh ^4(c+d x)\right )^2 \, dx &=\frac{\operatorname{Subst}\left (\int \frac{\left (a-2 a x^2+(a+b) x^4\right )^2}{x^6 \left (1-x^2\right )^2} \, dx,x,\tanh (c+d x)\right )}{d}\\ &=\frac{b^2 \cosh (c+d x) \sinh (c+d x)}{2 d}-\frac{\operatorname{Subst}\left (\int \frac{-2 a^2+6 a^2 x^2-2 a (3 a+2 b) x^4+\left (2 a^2+4 a b+b^2\right ) x^6}{x^6 \left (1-x^2\right )} \, dx,x,\tanh (c+d x)\right )}{2 d}\\ &=\frac{b^2 \cosh (c+d x) \sinh (c+d x)}{2 d}-\frac{\operatorname{Subst}\left (\int \left (-\frac{2 a^2}{x^6}+\frac{4 a^2}{x^4}-\frac{2 a (a+2 b)}{x^2}-\frac{b^2}{-1+x^2}\right ) \, dx,x,\tanh (c+d x)\right )}{2 d}\\ &=-\frac{a (a+2 b) \coth (c+d x)}{d}+\frac{2 a^2 \coth ^3(c+d x)}{3 d}-\frac{a^2 \coth ^5(c+d x)}{5 d}+\frac{b^2 \cosh (c+d x) \sinh (c+d x)}{2 d}+\frac{b^2 \operatorname{Subst}\left (\int \frac{1}{-1+x^2} \, dx,x,\tanh (c+d x)\right )}{2 d}\\ &=-\frac{b^2 x}{2}-\frac{a (a+2 b) \coth (c+d x)}{d}+\frac{2 a^2 \coth ^3(c+d x)}{3 d}-\frac{a^2 \coth ^5(c+d x)}{5 d}+\frac{b^2 \cosh (c+d x) \sinh (c+d x)}{2 d}\\ \end{align*}
Mathematica [A] time = 0.635186, size = 67, normalized size = 0.8 \[ \frac{15 b^2 (\sinh (2 (c+d x))-2 (c+d x))-4 a \coth (c+d x) \left (3 a \text{csch}^4(c+d x)-4 a \text{csch}^2(c+d x)+8 a+30 b\right )}{60 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.049, size = 74, normalized size = 0.9 \begin{align*}{\frac{1}{d} \left ({a}^{2} \left ( -{\frac{8}{15}}-{\frac{ \left ({\rm csch} \left (dx+c\right ) \right ) ^{4}}{5}}+{\frac{4\, \left ({\rm csch} \left (dx+c\right ) \right ) ^{2}}{15}} \right ){\rm coth} \left (dx+c\right )-2\,ab{\rm coth} \left (dx+c\right )+{b}^{2} \left ({\frac{\cosh \left ( dx+c \right ) \sinh \left ( dx+c \right ) }{2}}-{\frac{dx}{2}}-{\frac{c}{2}} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.06529, size = 360, normalized size = 4.29 \begin{align*} -\frac{1}{8} \, b^{2}{\left (4 \, x - \frac{e^{\left (2 \, d x + 2 \, c\right )}}{d} + \frac{e^{\left (-2 \, d x - 2 \, c\right )}}{d}\right )} - \frac{16}{15} \, a^{2}{\left (\frac{5 \, e^{\left (-2 \, d x - 2 \, c\right )}}{d{\left (5 \, e^{\left (-2 \, d x - 2 \, c\right )} - 10 \, e^{\left (-4 \, d x - 4 \, c\right )} + 10 \, e^{\left (-6 \, d x - 6 \, c\right )} - 5 \, e^{\left (-8 \, d x - 8 \, c\right )} + e^{\left (-10 \, d x - 10 \, c\right )} - 1\right )}} - \frac{10 \, e^{\left (-4 \, d x - 4 \, c\right )}}{d{\left (5 \, e^{\left (-2 \, d x - 2 \, c\right )} - 10 \, e^{\left (-4 \, d x - 4 \, c\right )} + 10 \, e^{\left (-6 \, d x - 6 \, c\right )} - 5 \, e^{\left (-8 \, d x - 8 \, c\right )} + e^{\left (-10 \, d x - 10 \, c\right )} - 1\right )}} - \frac{1}{d{\left (5 \, e^{\left (-2 \, d x - 2 \, c\right )} - 10 \, e^{\left (-4 \, d x - 4 \, c\right )} + 10 \, e^{\left (-6 \, d x - 6 \, c\right )} - 5 \, e^{\left (-8 \, d x - 8 \, c\right )} + e^{\left (-10 \, d x - 10 \, c\right )} - 1\right )}}\right )} + \frac{4 \, a b}{d{\left (e^{\left (-2 \, d x - 2 \, c\right )} - 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.71391, size = 1185, normalized size = 14.11 \begin{align*} \frac{15 \, b^{2} \cosh \left (d x + c\right )^{7} + 105 \, b^{2} \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{6} -{\left (64 \, a^{2} + 240 \, a b + 75 \, b^{2}\right )} \cosh \left (d x + c\right )^{5} - 4 \,{\left (15 \, b^{2} d x - 16 \, a^{2} - 60 \, a b\right )} \sinh \left (d x + c\right )^{5} + 5 \,{\left (105 \, b^{2} \cosh \left (d x + c\right )^{3} -{\left (64 \, a^{2} + 240 \, a b + 75 \, b^{2}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{4} + 5 \,{\left (64 \, a^{2} + 144 \, a b + 27 \, b^{2}\right )} \cosh \left (d x + c\right )^{3} + 20 \,{\left (15 \, b^{2} d x - 2 \,{\left (15 \, b^{2} d x - 16 \, a^{2} - 60 \, a b\right )} \cosh \left (d x + c\right )^{2} - 16 \, a^{2} - 60 \, a b\right )} \sinh \left (d x + c\right )^{3} + 5 \,{\left (63 \, b^{2} \cosh \left (d x + c\right )^{5} - 2 \,{\left (64 \, a^{2} + 240 \, a b + 75 \, b^{2}\right )} \cosh \left (d x + c\right )^{3} + 3 \,{\left (64 \, a^{2} + 144 \, a b + 27 \, b^{2}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{2} - 5 \,{\left (128 \, a^{2} + 96 \, a b + 15 \, b^{2}\right )} \cosh \left (d x + c\right ) - 20 \,{\left ({\left (15 \, b^{2} d x - 16 \, a^{2} - 60 \, a b\right )} \cosh \left (d x + c\right )^{4} + 30 \, b^{2} d x - 3 \,{\left (15 \, b^{2} d x - 16 \, a^{2} - 60 \, a b\right )} \cosh \left (d x + c\right )^{2} - 32 \, a^{2} - 120 \, a b\right )} \sinh \left (d x + c\right )}{120 \,{\left (d \sinh \left (d x + c\right )^{5} + 5 \,{\left (2 \, d \cosh \left (d x + c\right )^{2} - d\right )} \sinh \left (d x + c\right )^{3} + 5 \,{\left (d \cosh \left (d x + c\right )^{4} - 3 \, d \cosh \left (d x + c\right )^{2} + 2 \, d\right )} \sinh \left (d x + c\right )\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.27883, size = 234, normalized size = 2.79 \begin{align*} -\frac{{\left (d x + c\right )} b^{2}}{2 \, d} + \frac{b^{2} e^{\left (2 \, d x + 2 \, c\right )}}{8 \, d} + \frac{{\left (2 \, b^{2} e^{\left (2 \, d x + 2 \, c\right )} - b^{2}\right )} e^{\left (-2 \, d x - 2 \, c\right )}}{8 \, d} - \frac{4 \,{\left (15 \, a b e^{\left (8 \, d x + 8 \, c\right )} - 60 \, a b e^{\left (6 \, d x + 6 \, c\right )} + 40 \, a^{2} e^{\left (4 \, d x + 4 \, c\right )} + 90 \, a b e^{\left (4 \, d x + 4 \, c\right )} - 20 \, a^{2} e^{\left (2 \, d x + 2 \, c\right )} - 60 \, a b e^{\left (2 \, d x + 2 \, c\right )} + 4 \, a^{2} + 15 \, a b\right )}}{15 \, d{\left (e^{\left (2 \, d x + 2 \, c\right )} - 1\right )}^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]